import axios  from '../config'
import { PROJECT_API_URL } from '../baseURL'

export default {
    //获取维度
    getDim(){
      return axios({
          url: PROJECT_API_URL + '/dim/list',
          method: "GET",
      })
    },
    addDim(dim){
        return axios({
            url: PROJECT_API_URL + '/dim/add',
            method: "POST",
            data: dim,
          })
    },
    //获取事实表
    getFact(){
        return axios({
            url: PROJECT_API_URL + '/fact/list',
            method: "GET",
        })
    },
    addFact(fact){
        return axios({
            url: PROJECT_API_URL + '/fact/add',
            method: "POST",
            data: fact,
          })
    },
    //获取指标
    getNorm(){
        return axios({
            url: PROJECT_API_URL + '/norm/list',
            method: "GET",
        })
    },
    addNorm(norm){
        return axios({
            url: PROJECT_API_URL + '/norm/add',
            method: "POST",
            data: norm,
          })
    },
    
}